<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" import="java.util.*,com.telecom.cms.dao.*"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
		<title></title>
		<%
			if (request.getAttribute("retainCSSession") == null){
				session.removeAttribute("AtomList");
				session.removeAttribute("Outputlist");
				session.removeAttribute("copycondition");
				session.removeAttribute("selectedtemplate");
			}
			
			session.setAttribute("oldid", (String) session
					.getAttribute("latnid"));
			session.setAttribute("latnid", (String) session
					.getAttribute("Latn_Id"));
			Calendar myCalendar = Calendar.getInstance();

			String billing_cycle_y = ((Integer) (myCalendar.get(Calendar.YEAR)))
					.toString();
			String billing_cycle_m = ((Integer) (myCalendar.get(Calendar.MONTH)))
					.toString();

			if ((Integer) (myCalendar.get(Calendar.MONTH)) == 0) {

				billing_cycle_y = ""
				+ (((Integer) (myCalendar.get(Calendar.YEAR))) - 1);
				billing_cycle_m = "12";

			}

			session.setAttribute("billing_cycle_y", billing_cycle_y);
			session.setAttribute("billing_cycle_m", billing_cycle_m);
			if (null != request.getParameter("requery")) {
				request.getSession().removeAttribute("AtomList");
				request.getSession().removeAttribute("Outputlist");
				request.getSession().removeAttribute("selectedtemplate");
			}
		%>

	</head>
	<%
		String kindId = (String) session.getAttribute("kindId");
		if (kindId == null) {
			String newId = request.getParameter("kindId");
			session.setAttribute("kindId", newId);
			kindId = newId;
		}

		//  String kindId = request.getParameter("kindId");
		//  session.setAttribute("kindId", kindId);

		String bid = null;
		if ("2".equals(kindId)) {
			bid = "8";
		} else {
			bid = "1";
		}
		String path = request.getRequestURL().toString();
	//	System.out.println(path);
		String realpath = path.substring(0, path.lastIndexOf("/") + 1);
	//	System.out.println(realpath);

		String leftpath = realpath + "coll.jsp";
		String toppath = realpath + "usertop.jsp";

		String tempa = realpath.substring(0, realpath.length() - 1);

	//	System.out.println("a ==  " + tempa);

		String mainpath = realpath.substring(0, tempa.lastIndexOf("/") + 1)
				+ "uptest.do?bookmarkid=" + bid;
	%>
	<frameset rows="*" cols="210,*" frameborder="no" border="0"
		framespacing="0">
		<frame src=<%=leftpath%> name="leftFrame" scrolling="no"
			noresize="noresize" id="leftFrame" title="leftFrame" />
		<frameset rows="100,*" cols="*" framespacing="0" frameborder="no"
			border="0">
			<frame src=<%=toppath%> name="topFrame" scrolling="no"
				noresize="noresize" id="topFrame" title="topFrame" />
			<frame src=<%=mainpath%> name="mainFrame" scrolling="auto"
				id="mainFrame" title="mainFrame" />
		</frameset>
	</frameset>
	<body>
	</body>
</html>
